﻿<html>
<head>
<title></title>
<meta name='keywords' content=''>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
*{
	margin: 0;
	padding: 0;
	font-size: 12px;
}
.buton {
font: 12px verdana,tahoma; 
color: #fff; 
background-color: #4a6ea5;
border:1px #003366 solid;
height:2em;
}

</style>
</head>
<body bgcolor="#ffffff" text="#000000" leftmargin="0" topmargin="0">

<?php foreach((array)$picdata as $_key => $_value ) { ?>
 
 <?php if ($_value.file_url) { ?>
  <?php  if($tf=='pic'){  ?>   
 
<img src='{$_value.file_url|picdir}' id='upsrc' width='100px' height='100px'><a href="?app={$app}&act=pupfile&action=del&id={$_value.id}"><img src='{$site_url}/data/images/close.gif'></a>
  <?php  }else{  ?>
  文件名{$_key}：({$_value.file_url})<a href="?app={$app}&act=pupfile&action=del&tf={$tf}&id={$_value.id}"><img src='{$site_url}/data/images/close.gif'></a><br/>
<?php } ?>
<?php } ?>

<?php } ?>
					
<form name="form1" method="post" action="?app={$app}&act=pupfile&tf={$tf}" enctype="multipart/form-data">

  <input id="postfile1" type="file" name="postfile1" style="height:20px;"  class="buton">
  <?php 
  if($tf=='pic')
  { 
  ?>  
            <select name='waterimg'>
		  <option value='0' >请选择是否加水印...</option>
          <option value='1' >加</option>
          <option value='0' >不加</option> 
          </select>
           <br/>
          缩略图大小:长(px)<input type="text" maxlength="4" size="6" value="0" name="thumb_width"> x 宽(px) <input type="text" maxlength="4" size="6" value="0" name="thumb_height">
  <?php 
  }else
  {
  ?>
  <input type="hidden" name="waterimg" value="0"> 
  <input type="hidden" name="thumb_width" value="0">  
  <input type="hidden" name="thumb_height" value="0">
  <input type="hidden" name="tf" value="{$tf}">   
  <?php 
  }
  ?> 	  
  <input  type="submit" name="Submit" value="上传文件" style="height:20px;" class="buton">
  <input type="hidden" name="action" value="post">
  <input type="hidden" name="id" value="{$id}">
</form>

</body>
</html>